import com.eapi.eapisdk.Eapiclient.Eapiclient;
import com.eapi.eapisdk.Eapiclient.model.InterfaceInfoInvokeRequest;
import com.eapi.eapisdk.Eapiclient.model.UserRequest;
import org.springframework.boot.autoconfigure.security.SecurityProperties;

public class main {
    public static void main(String[] args) {
        //初始化请求参数
        InterfaceInfoInvokeRequest requestParam = new InterfaceInfoInvokeRequest("{\"question\":\"孙悟空打灰太狼，续写\"}", 3L);
        //初始化用户账号和密码，请替换为你自己的账号和密码
        UserRequest userRequest = new UserRequest("your_userAccount","your_userPassword");
        //初始化API-KEY
        Eapiclient eapiclient = new Eapiclient("f4c35007d12293c95c15bfd62e39b90a", "6843da9900c6fa8961bc330128768f7f",requestParam);
        //调用接口
        String result = eapiclient.simpleCall("http://121.40.232.157:8090/api/interfaceInfo/invoke",userRequest);
        System.out.println(result);
    }
}
